<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>全局组件</title>
		<script src="../js/vue.js"></script>
		<script src="../js/vue-router.js"></script>
	</head>
	<body>
		<div id="app">
			<add></add>
		</div>
		<template id="tem">
			<div>
				<h1>我是组件区的组件</h1>
			</div>
		</template>
		<script>
		Vue.component("add",{
			data(){
				return{
					msg:123
				}
			},
			template:"#tem"
		})
		const app = new Vue({
			el:"#app"
		})
		</script>
	</body>
</html>
